<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:useBean id="logon" scope="session" class="bean.Connexion"></jsp:useBean>
<jsp:useBean id="pageConfig" scope="session" class="bean.Page"></jsp:useBean>
<jsp:useBean id="currentpage" scope="session" class="bean.Page"></jsp:useBean>

<div id="mainnav">
	<div id="all_menufree">
		<div id="header_menufree">
			
		<script type="text/javascript" src="commun_page_swmenufree/swmenufree_DropDownMenuX_Packed.js"></script>
		
		<div align="left">
			<table cellspacing="0" cellpadding="0" id="menu86" class="ddmx86">
				<tr>
					<td class='item11'>
						<a href="index.jsp" class="item1<% if (currentpage.getShortName().equals("accueil")) { out.print("-active"); } %> home "><img src="images/ihm/logo_mini.png" width="23" height="23" title="Accueil" alt="Home" /></a>
					</td>
					
					<td class='sep'></td>
					
					<td class='item11'>
						<a href="patients.jsp" class="item1<% if (currentpage.getShortName().equals("patients")) { out.print("-active"); } %>">Patients</a>
						<!-- <div class="section">
							<a href="#" class="item2">
								Lister
							</a>
							<a href="#" class="item2">
								Enregistrer
							</a>	
						</div>-->
					</td>
					
					<td class='sep'></td>
					
					<td class='item11'>
						<a href="ordonnance.jsp" class="item1<% if (currentpage.getShortName().equals("ordonnances")) { out.print("-active"); } %>">Ordonnances</a>
						<!--<div class="section">
							<a href="#" class="item2">
								Déposer
							</a>
						</div>-->
					</td>
				
					<td class='sep'></td>
					
					<td class='item11'>
						<a href="moncompte.jsp" class="item1<% if (currentpage.getShortName().equals("compte")) { out.print("-active"); } %>">Mon Compte</a>
						<!--<div class="section">
							<a href="#" class="item2">
								Déposer
							</a>
						</div>-->
					</td>
				
					<td class='sep'></td>
					
					<% if (pageConfig.getMedecin() != null && pageConfig.getMedecin().getId() == 0) { %>
					<td class='item11'>
						<a href="acces.jsp" class="item1<% if (currentpage.getShortName().equals("acces")) { out.print("-active"); } %>">Utilisateurs</a>
						<!--<div class="section">
							<a href="#" class="item2">
								Déposer
							</a>
						</div>-->
					</td>
				
					<td class='sep'></td>
					<% } %>
				</tr>
			</table>
			<div class="logout">
				<% if (pageConfig.getMedecin() != null && pageConfig.getMedecin().getId() == 0) out.print("Admin - "); %>
				Déconnexion 
				<a href="logout.jsp" class="item1"><img border="0 none" src="images/ihm/logout.png" onmouseover="this.src='images/ihm/logout_active.png'" onmouseout="this.src='images/ihm/logout.png'" title="Déconnexion" /></a>
			</div>
		</div>
	</div>
</div>

<script type="text/javascript">
<!--
function makemenu86(){
	var ddmx86 = new DropDownMenuX('menu86');
	ddmx86.delay.show = 0;
	ddmx86.iframename = 'ddmx86';
	ddmx86.delay.hide = 50;
	ddmx86.position.levelX.left = 0;
	ddmx86.position.levelX.top = 0;
	ddmx86.position.level1.left = -2;
	ddmx86.position.level1.top = 0; 
	ddmx86.fixIeSelectBoxBug = true;
	ddmx86.init(); 
}
if ( typeof window.addEventListener != "undefined" ) window.addEventListener( "load", makemenu86, false );
else if ( typeof window.attachEvent != "undefined" ) window.attachEvent( "onload", makemenu86 );
else {
	if ( window.onload != null ) {
		var oldOnload = window.onload;
		window.onload = function ( e ) { 
			oldOnload( e ); 
			makemenu86() 
		} 
	}  
	else  { 
		window.onload = makemenu86();
	}
}
--> 
</script> 
</div>

